<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
    <style>
        /*当前标签体和标签内容的距离，这个距离会使得div容器变大*/
        /*
      width:当前元素的宽度
      height:当前元素的高度
      border:当前元素的边框
      padding:当前元素边框与标签体内容的距离,称之为内边距
      margin:当前元素边框与父元素边框的距离,称之为外边距
    */
        .c1{
            width: 200px;
            height: 100px;
            background: red;
            /*padding-left: 100px;*/
            /*padding-right: 100px;*/
            /*padding-top: 100px;*/
            /*padding-bottom: 100px;*/
            padding: 100px 200px 300px 400px;
        }
        .c2{
            width: 800px;
            height: 200px;
            background: green;
        }
    </style>
</head>
<body>
<div class="c1">a</div>
<div class="c2"></div>
</body>
</html>